package com.duxd.springsecurityfinal.springsecurityfinal.pojo;

import java.io.Serializable;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author dong
 * @date 2022/1/13 0013
 */
public class Student  {

    private String name;

    private String school;

    public Student(String name, String school) {
        this.name = name;
        this.school = school;
    }

    public Student(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public static List<Student> buildList(String... names){
        return Arrays.stream(names).map(Student::new).collect(Collectors.toList());
    }
}
